import { Brands } from '../Brand/Brands'
import { connect } from 'react-redux'
import {
    requestCategoryList,
    requestAddCategoryList,
    requestRemoveCategoryList,
    requestEditCategorylist
} from '../../api/category'

class Classifys extends Brands {
    api = {
        get: requestCategoryList,
        post: requestAddCategoryList,
        put: requestEditCategorylist,
        delete: requestRemoveCategoryList
    }
    use = '分类'
}

export default connect((state) => {
    return {
        show: state.getIn(['fade', 'show'])
    }
})(Classifys)
